/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package maincz.tests.webapp.security;

import java.util.logging.Logger;
import javax.faces.application.FacesMessage;
import javax.faces.bean.RequestScoped;
import javax.faces.context.FacesContext;
import javax.faces.event.ActionEvent;
import org.springframework.stereotype.Component;

/**
 *
 * @author Main
 */
@Component("registrationBean")
@RequestScoped
public class RegistrationBean {
    private static final Logger log = Logger.getLogger(RegistrationBean.class.getName());
    
    /**
     * Registrace noveho uzivatele.
     * @return 
     */
    public void process(ActionEvent event) {
        log.info("Registration");
        FacesMessage msg = new FacesMessage(FacesMessage.SEVERITY_INFO, "Correct", "Correct");
        FacesContext.getCurrentInstance().addMessage(null, msg);
    }
}
